package com.handsome.代理模式.cglib代理;

/**
 * @author niechun
 * @date 2023/3/11 18:02
 */
public class Client {


    public static void main(String[] args) {

        //创建目标对象
        TeacherDao teacherDao=new TeacherDao();
        //获取代理对象
        TeacherDao teacherDaoProxy =(TeacherDao) new ProxyFactory(teacherDao).newInstance();
        teacherDaoProxy.teach();

    }
}
